﻿<UserControl
    x:Class="ColorWheel.Silverlight.Wheel.Demo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:cwc="clr-namespace:ColorWheel.Controls;assembly=ColorWheel.Controls"
    xmlns:global="clr-namespace:ColorWheel.Core;assembly=ColorWheel.Core"    
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">

    <Grid
        Height="568"
        Width="751">

        <ComboBox
            Padding="5 3 5 3"
            Margin="554,49,0,494"
            x:Name="cboWheelOp"
            SelectedIndex="{Binding Palette.SchemaIndex, Mode=TwoWay}"
            VerticalAlignment="Center"
            Height="25">

            <sys:String>Monochromatic</sys:String>
            <sys:String>Analogous</sys:String>
            <sys:String>Complementary</sys:String>
            <sys:String>Split-analogous</sys:String>
            <sys:String>Split-complementary</sys:String>
            <sys:String>Triad</sys:String>
            <sys:String>Tetrads</sys:String>
            <sys:String>Quadrants</sys:String>
            <sys:String>Custom</sys:String>
        </ComboBox>


        <cwc:ColorWheelControl
            Palette="{Binding Palette, Mode=OneWay}"
            x:Name="wheel"
            Margin="0,0,194,0" />

        <Button
            Content="RBG"
            Height="23"
            HorizontalAlignment="Left"
            Margin="554,12,0,0"
            Name="button1"
            VerticalAlignment="Top"
            Width="56"
            Click="button1_Click" />

        <Button
            Content="RYB"
            Height="23"
            HorizontalAlignment="Left"
            Margin="625,12,0,0"
            Name="button2"
            VerticalAlignment="Top"
            Width="56"
            Click="button2_Click" />

        <Button
            Content="RYGB"
            Height="23"
            HorizontalAlignment="Left"
            Margin="695,12,0,0"
            Name="button3"
            VerticalAlignment="Top"
            Width="56"
            Click="button3_Click" />
    </Grid>
    
</UserControl>
